Skip to content

DR1: the site on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/DR-2-the-site-on-workers
Oct 29, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/DR-2-the-site-on-workers

Conversation

@pullely

@pullely pullely commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

chapter-three/next-drupal examples/example-marketing (80a89f1, MIT) in apps/web, moved from Next 14 to 16.3.8 (React 19, next-drupal 2.0.1 with its own next overridden, TanStack Query 5, the current next/link and next/image), built by next build --webpack and @opennextjs/cloudflare 1.20.11 into one Worker with Static Assets: the R2 incremental cache (infra/terraform/cloudflare-r2, its name rendered into wrangler.jsonc from the wiring document), a memory queue and a WORKER_SELF_REFERENCE service binding, which res.revalidate goes through. DRUPAL_BASE_URL and DRUPAL_SITE_ID are optional build secrets; with no URL next-drupal's fetcher is lib/sample-drupal.mjs — the template's content model in JSON:API's shapes (landing pages from paragraphs, articles, a page, twelve listings, the properties view and its filters, two menus, English and Spanish) — under a 'No Drupal site is connected' notice. The OAuth consumer and the revalidation secret stay out of the build and are put on the Worker by the deploy; /api/revalidate refuses every call while its secret is unset (upstream let a call with no secret through). tests/web: the sample read through next-drupal, a connected Drupal over HTTP (tests/web/fake-drupal.mjs), the two routes Drupal calls, the seams. typecheck, lint, test and build are green; wrangler dev serves every route unconnected, and connected: cached pages, an edit shown after revalidation, a draft in preview.

🤖 Generated with Claude Code

chapter-three/next-drupal examples/example-marketing (80a89f1, MIT) in apps/web, moved from Next 14 to 16.3.8 (React 19, next-drupal 2.0.1 with its own next overridden, TanStack Query 5, the current next/link and next/image), built by next build --webpack and @opennextjs/cloudflare 1.20.11 into one Worker with Static Assets: the R2 incremental cache (infra/terraform/cloudflare-r2, its name rendered into wrangler.jsonc from the wiring document), a memory queue and a WORKER_SELF_REFERENCE service binding, which res.revalidate goes through. DRUPAL_BASE_URL and DRUPAL_SITE_ID are optional build secrets; with no URL next-drupal's fetcher is lib/sample-drupal.mjs — the template's content model in JSON:API's shapes (landing pages from paragraphs, articles, a page, twelve listings, the properties view and its filters, two menus, English and Spanish) — under a 'No Drupal site is connected' notice. The OAuth consumer and the revalidation secret stay out of the build and are put on the Worker by the deploy; /api/revalidate refuses every call while its secret is unset (upstream let a call with no secret through). tests/web: the sample read through next-drupal, a connected Drupal over HTTP (tests/web/fake-drupal.mjs), the two routes Drupal calls, the seams. typecheck, lint, test and build are green; wrangler dev serves every route unconnected, and connected: cached pages, an edit shown after revalidation, a draft in preview.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: DR-2
@pullely
pullely merged commit c647a1b into main Oct 29, 2026
2 checks passed
@pullely
pullely deleted the orun/DR-2-the-site-on-workers branch October 29, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants